package com.ylr.admin.framework.feign.fallback;

import com.ylr.base.common.po.user.UserAuthenticationDto;
import com.ylr.base.common.tool.Result;
import com.ylr.admin.framework.feign.YaUserBaseClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-11 17:35:35
 * className: YaUserClientFallback
 * version: 1.0
 * description:
 */
public class YaUserClientFallback implements YaUserBaseClient {

    private static final Logger log = LoggerFactory.getLogger(YaUserClientFallback.class);

    @Override
    public Result<UserAuthenticationDto> getAuthentication(Long userId) {
        log.warn("admin模块 => 获取用户认证数据接口，请求失败回调");
        return Result.fail();
    }
}
